# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError

class EmpCalenderspecial(models.Model):
    _name = 'emp.calenderspecial'

    autono = fields.Char('人員自動編號')
    depkind = fields.Many2one(string='部別', comodel_name='emp.codedepkind')
    specialdate = fields.Datetime('日期')
    amstart = fields.Char('上班時間點')
    noonstart = fields.Char('午休開始時間')
    pmstart = fields.Char('下班時間點')
    amend = fields.Char('上班刷卡允許時間')
    noonend = fields.Char('午休結束時間')
    pmend = fields.Char('下班刷卡允許時間')
    duty = fields.Char('當天是否上班') #boolean
    memo = fields.Char('備註')
    startdate = fields.Datetime('核准日期')
    leavebasic = fields.Char('請假基準')
    course_date = fields.Date()
    campus_location = fields.Char()
    work_category = fields.Char()
    category = fields.Char()
